cmake: disable pedantic
authorPaul Donald <[email protected]>
Sat, 25 Oct 2025 16:24:35 +0000 (18:24 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Mon, 3 Nov 2025 13:46:06 +0000 (14:46 +0100)
commit8d052c52e18dcb097c750765d8d2d8d7d33f2075
tree0fd9e468b00da81032345f309431691c9e429560
parentf2521b296b21df207cac1ec513c7a56235ad10fc
cmake: disable pedantic

This flag breaks compilation with ubus on aarch64/arm/x86.
The only platform which compiles successfully is mips.

/home/runner/work/odhcp6c/odhcp6c/build/include/libubox/utils.h:126:31: error: invalid application of ‘sizeof’ to a void type [-Werror=pointer-arith]
  126 |         (sizeof(int) == sizeof(*(1 ? ((void*)((long)(x) * 0l)) : (int*)1)))
      |                               ^
/home/runner/work/odhcp6c/odhcp6c/build/include/libubox/utils.h:140:31: note: in expansion of macro ‘__is_constant’
  140 |         __builtin_choose_expr(__is_constant(x),                         \
      |                               ^~~~~~~~~~~~~
/home/runner/work/odhcp6c/odhcp6c/build/include/libubox/utils.h:167:24: note: in expansion of macro ‘__eval_safe’
  167 | #define be32_to_cpu(x) __eval_safe(__constant_swap32, x)
      |                        ^~~~~~~~~~~

Signed-off-by: Paul Donald <[email protected]>
Link: https://github.com/openwrt/odhcp6c/pull/109
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
CMakeLists.txt